<template>
  <transition name="el-fade-in">
    <el-backtop :visibility-height="500" :target="elTarget" />
  </transition>
</template>

<script setup>
// eslint-disable-next-line
defineProps({
  elTarget: {
    type: String,
    default: ''
  }
})
</script>

<style scoped lang="scss">
.backtop{
  position: fixed;
  cursor: pointer;
  border-radius: 50%;
  @include sc(20px, $primary-color);
  @include borderRadius(50%);
  @include wh(40px, 40px);
  @include fj();
  align-items: center;
  box-shadow: 0 0 6px rgb(0 0 0 / 12%);
}
</style>
